package com.ie.sevice.admin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ie.common.http.ResponseResult;
import com.ie.entity.GoodsEntity;
import com.ie.entity.CartEntity;

import java.util.List;
import java.util.Map;

public interface GoodsService extends IService<GoodsEntity> {
    ResponseResult<Map<String, Object>> getGoods(GoodsEntity goodsEntity);

    ResponseResult<List<GoodsEntity>> getAdvGoods();

    ResponseResult<GoodsEntity> getGoodsById(GoodsEntity goodsEntity);

    ResponseResult<List<GoodsEntity>> getGoodsIndex(GoodsEntity goodsEntity);

    ResponseResult<Map<String, String>> addGoods(GoodsEntity goodsEntity);

    ResponseResult<Map<String, String>> deleteGoods(GoodsEntity goodsEntity);
    //和BUser有关的业务处理
    /*
    1.cart
    2.focus
     */
    ResponseResult<List<Map<String,Object>>> myCarGoods(CartEntity  cartEntity);
    ResponseResult<Map<String,Object>> iPageMyFocusGoods(GoodsEntity goodsEntity);


}
